//
//  AppDelegate.m
//  LotteryProject
//
//  Created by 阳光 on 17/7/9.
//  Copyright © 2017年 阳光. All rights reserved.
//

#import "AppDelegate.h"
#import "MyMainViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    _window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.rootViewController=[[TabBarControllerConfig new]tabBarController];
    _window.backgroundColor=[UIColor whiteColor];

    [self setNavigationBar];

    [_window makeKeyAndVisible];

    return YES;
}

-(void)setNavigationBar
{
    [[UINavigationBar appearance]setBarTintColor:MainColor];
    [[UINavigationBar appearance]setTitleTextAttributes:@{NSForegroundColorAttributeName:WhiteColor,
                                                          NSFontAttributeName:FontNumber(20)}];
}

@end
